package com.iOS.dto;

import com.iOS.entity.PushInfo;
import com.iOS.enums.PushInfoEnum;

public class PushInfoExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*推送信息对象*/
    private PushInfo pushInfo;

    public PushInfoExecution(PushInfoEnum pushInfoEnum) {
        this.state = pushInfoEnum.getState();
        this.stateInfo = pushInfoEnum.getStateInfo();
    }

    public PushInfoExecution(PushInfoEnum pushInfoEnum, PushInfo pushInfo) {
        this.state = pushInfoEnum.getState();
        this.stateInfo = pushInfoEnum.getStateInfo();
        this.pushInfo = pushInfo;

    }

    public int getState() {

        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public PushInfo getPushInfo() {
        return pushInfo;
    }

    public void setPushInfo(PushInfo pushInfo) {
        this.pushInfo = pushInfo;
    }
}
